<template>
  <div class="home" >
    <img src="@/assets/bg2.jpg" alt="bg" class="bg">
    <h1 class="h">基于Web的交互式组态开发平台设计与实现</h1>
    <a @click="gologin">Let's get started</a>
  </div>
</template>

<script>
export default {
  name: "Home",
  components: {},
  methods: {
    gologin() {
      setTimeout(() => {
        this.$router.push("/login");
      }, 1000);
    },
  },
};
</script>
<style>
* {
  margin: 0;
  padding: 0;
}
/* .home{
  background: '../assets/bg2.jpg';
} */
.h {
  margin-top: 150px;
  color: white;
  margin-bottom: 400px;
}
.bg{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}
a {
  cursor: pointer;
  position: relative;
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  background-color: rgba(219, 87, 5, 1);
  font-family: "Yanone Kaffeesatz";
  font-weight: 700;
  font-size: 3em;
  display: block;
  padding: 4px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  -webkit-box-shadow: 0px 9px 0px rgba(219, 31, 5, 1),
    0px 9px 25px rgba(0, 0, 0, 0.7);
  -moz-box-shadow: 0px 9px 0px rgba(219, 31, 5, 1),
    0px 9px 25px rgba(0, 0, 0, 0.7);
  box-shadow: 0px 9px 0px rgba(219, 31, 5, 1), 0px 9px 25px rgba(0, 0, 0, 0.7);
  margin: 100px auto;
  width: 450px;
  text-align: center;

  -webkit-transition: all 0.1s ease;
  -moz-transition: all 0.1s ease;
  -ms-transition: all 0.1s ease;
  -o-transition: all 0.1s ease;
  transition: all 0.1s ease;
}

a:active {
  -webkit-box-shadow: 0px 3px 0px rgba(219, 31, 5, 1),
    0px 3px 6px rgba(0, 0, 0, 0.9);
  -moz-box-shadow: 0px 3px 0px rgba(219, 31, 5, 1),
    0px 3px 6px rgba(0, 0, 0, 0.9);
  box-shadow: 0px 3px 0px rgba(219, 31, 5, 1), 0px 3px 6px rgba(0, 0, 0, 0.9);
  position: relative;
  top: 6px;
}
</style>